/*
package NiuKe;

import java.util.Scanner;

*/
/**
 * @Description:
 * @Author: Hanzao
 * @Date: 2022/06/12/22:07
 *//*

public class HJ15 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        int res = 0;
        while(num!=0){
            if(num%2==1){
                res++;
            }
            num = num/2;
        }
        System.out.println(res);
    }
}
*/
